package com.omall.search.util;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.model.InitializationError;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.omall.search.service.LuceneService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:spring.xml")
public class luceneTest extends SpringJUnit4ClassRunner {

	
	@Resource LuceneService luceneService;
	
	
	@Test
	public void Test(){
		
		try {
			  luceneService.buildIndex();
		    }
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
	
/*	public luceneTest(){
		
	}
	*/
	public luceneTest(Class<?> clazz) throws InitializationError {
		super(clazz);
		
	}
	
	public static void main(String [] args){
		
		System.out.println("111");
	}
	
	



}
